﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GeometricAlg.Model
{
    public class Point2d
    {
        public double X { get; set; }

        public double Y { get; set; }

        public Point2d()
        {

        }

        public Point2d(double x, double y)
        {
            X = x;
            Y = y;
        }

        public static Point2d operator +(Point2d p1, Point2d p2)
        {
            return new Point2d { X = p1.X + p2.X, Y = p1.Y + p2.Y };
        }

        public static Point2d operator -(Point2d p1, Point2d p2)
        {
            return new Point2d { X = p1.X - p2.X, Y = p1.Y - p2.Y };
        }
    }
}
